﻿

namespace LxCFD
{
    public class SIMPLEUnit : SIMPLEBase
    {
        protected volatile int MaxNonOrthCorSteps = 1;
        protected override void solvePCors()
        {
            base.solvePCors();
            for (int i1 = 0; i1 < MaxNonOrthCorSteps; i1++)
            {
                MultiThreads.RunCalTasks((taskIndex) =>
                {
                    foreach (var pc in PCors) { pc.Setb_Step1_Cor(taskIndex); }
                });
                MultiThreads.RunCalTasks((taskIndex) =>
                {
                    foreach (var pc in PCors) { pc.Setb_Step2_Cor(taskIndex); }
                });
                base.solvePCors();
            }
        }
    }
}
// public SIMPLEBaseUnit TempStor { get; set; }
//public override void Clear()
//{
//    base.Clear();
//    TempStor = new SIMPLEBaseUnit();
//}